<?php

namespace App\Http\Controllers;

use App\Http\Controllers\Controller;

class DefaultController extends Controller
{   
    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {        
        return view($this->view);
    }

    
    public function logout()
    {
        \Auth::guard()->logout();

        return redirect()->intended('/login');
    }

}
